/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.bar.model;

import com.liferay.portal.model.ModelWrapper;

/**
 * <p>
 * This class is a wrapper for {@link Mailing}.
 * </p>
 *
 * @author    pgonzalm
 * @see       Mailing
 * @generated
 */
public class MailingWrapper implements Mailing, ModelWrapper<Mailing> {
	public MailingWrapper(Mailing mailing) {
		_mailing = mailing;
	}

	public Class<?> getModelClass() {
		return Mailing.class;
	}

	public String getModelClassName() {
		return Mailing.class.getName();
	}

	/**
	* Returns the primary key of this mailing.
	*
	* @return the primary key of this mailing
	*/
	public long getPrimaryKey() {
		return _mailing.getPrimaryKey();
	}

	/**
	* Sets the primary key of this mailing.
	*
	* @param primaryKey the primary key of this mailing
	*/
	public void setPrimaryKey(long primaryKey) {
		_mailing.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the mailing ID of this mailing.
	*
	* @return the mailing ID of this mailing
	*/
	public long getMailingId() {
		return _mailing.getMailingId();
	}

	/**
	* Sets the mailing ID of this mailing.
	*
	* @param mailingId the mailing ID of this mailing
	*/
	public void setMailingId(long mailingId) {
		_mailing.setMailingId(mailingId);
	}

	/**
	* Returns the user name of this mailing.
	*
	* @return the user name of this mailing
	*/
	public java.lang.String getUserName() {
		return _mailing.getUserName();
	}

	/**
	* Sets the user name of this mailing.
	*
	* @param userName the user name of this mailing
	*/
	public void setUserName(java.lang.String userName) {
		_mailing.setUserName(userName);
	}

	/**
	* Returns the create date of this mailing.
	*
	* @return the create date of this mailing
	*/
	public java.util.Date getCreateDate() {
		return _mailing.getCreateDate();
	}

	/**
	* Sets the create date of this mailing.
	*
	* @param createDate the create date of this mailing
	*/
	public void setCreateDate(java.util.Date createDate) {
		_mailing.setCreateDate(createDate);
	}

	/**
	* Returns the user surname of this mailing.
	*
	* @return the user surname of this mailing
	*/
	public java.lang.String getUserSurname() {
		return _mailing.getUserSurname();
	}

	/**
	* Sets the user surname of this mailing.
	*
	* @param userSurname the user surname of this mailing
	*/
	public void setUserSurname(java.lang.String userSurname) {
		_mailing.setUserSurname(userSurname);
	}

	/**
	* Returns the mailing of this mailing.
	*
	* @return the mailing of this mailing
	*/
	public boolean getMailing() {
		return _mailing.getMailing();
	}

	/**
	* Returns <code>true</code> if this mailing is mailing.
	*
	* @return <code>true</code> if this mailing is mailing; <code>false</code> otherwise
	*/
	public boolean isMailing() {
		return _mailing.isMailing();
	}

	/**
	* Sets whether this mailing is mailing.
	*
	* @param mailing the mailing of this mailing
	*/
	public void setMailing(boolean mailing) {
		_mailing.setMailing(mailing);
	}

	/**
	* Returns the email of this mailing.
	*
	* @return the email of this mailing
	*/
	public java.lang.String getEmail() {
		return _mailing.getEmail();
	}

	/**
	* Sets the email of this mailing.
	*
	* @param email the email of this mailing
	*/
	public void setEmail(java.lang.String email) {
		_mailing.setEmail(email);
	}

	/**
	* Returns the phone of this mailing.
	*
	* @return the phone of this mailing
	*/
	public long getPhone() {
		return _mailing.getPhone();
	}

	/**
	* Sets the phone of this mailing.
	*
	* @param phone the phone of this mailing
	*/
	public void setPhone(long phone) {
		_mailing.setPhone(phone);
	}

	public boolean isNew() {
		return _mailing.isNew();
	}

	public void setNew(boolean n) {
		_mailing.setNew(n);
	}

	public boolean isCachedModel() {
		return _mailing.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_mailing.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _mailing.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _mailing.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_mailing.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _mailing.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_mailing.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new MailingWrapper((Mailing)_mailing.clone());
	}

	public int compareTo(com.bar.model.Mailing mailing) {
		return _mailing.compareTo(mailing);
	}

	@Override
	public int hashCode() {
		return _mailing.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.bar.model.Mailing> toCacheModel() {
		return _mailing.toCacheModel();
	}

	public com.bar.model.Mailing toEscapedModel() {
		return new MailingWrapper(_mailing.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _mailing.toString();
	}

	public java.lang.String toXmlString() {
		return _mailing.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_mailing.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Mailing getWrappedMailing() {
		return _mailing;
	}

	public Mailing getWrappedModel() {
		return _mailing;
	}

	public void resetOriginalValues() {
		_mailing.resetOriginalValues();
	}

	private Mailing _mailing;
}